import request from '@/utils/request'

// 查询招聘列表
export function listHirePeople(query) {
  return request({
    url: '/business/hirePeople/list',
    method: 'get',
    params: query
  })
}

// 查询招聘详情息详细
export function getHirePeople(id) {
  return request({
    url: '/business/hirePeople/' + id,
    method: 'get'
  })
}

// 新增招聘
export function addHirePeople(data) {
  return request({
    url: '/business/hirePeople',
    method: 'post',
    data: data
  })
}

// 修改用户消息
export function updateHirePeople(data) {
  return request({
    url: '/business/hirePeople',
    method: 'put',
    data: data
  })
}

// 删除用户消息
export function delHirePeople(id) {
  return request({
    url: '/business/hirePeople/' + id,
    method: 'delete'
  })
}

// 导出用户消息
export function exportHirePeople(query) {
  return request({
    url: '/business/hirePeople/export',
    method: 'get',
    params: query
  })
}